<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'Purchase.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<jsp:include page="../common/lib.jsp"></jsp:include>
<SCRIPT language=javascript
	src="<%=basePath%>js/jquery.ztree.all.min.js"></SCRIPT>
<link rel="stylesheet"
	href="<%=basePath%>ztree/css/css/zTreeStyle/zTreeStyle.css"
	type="text/css">
<SCRIPT language=javascript src="<%=basePath%>js/Purchase.js"></SCRIPT>

</head>

<body>
	<div class="container-fluid">
		<div class="info-center">
			<div class="page-header">
				<div class="pull-left">
					<h4>消息中心</h4>
				</div>
			</div>

			<div class="page-header">采购订单管理</div>

			<!-- <div class="info-center-title">
					    121212121
					</div> -->

			<div id="qywine" style="display:block;">
				<button class="btn btn-primary btn-sm addBtn" onclick="add()">新
					增</button>

				<button class="btn btn-danger btn-sm" onclick="deleteall()">批量删除</button>

			</div>

			<div class="clearfix"></div>

			<div class="table-margin">
				<table class="table table-bordered table-header" id="tableid">
					<thead>
						<tr>
							<th><input id="haha" type="checkbox" name="allChecked" /></th>
							<th>id</th>
							<th>采购名称</th>
							<th>结束时间</th>
							<th>开始时间</th>
							<th>采购详情</th>
							<th>state</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>

					</tbody>
				</table>
			</div>
		</div>
		<div class="show">
			<ul>
			</ul>
		</div>

		<!--订单下详情 -->
		<div class="modal fade" id="myModal-select-info" tabindex="-1"
			role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel">采购详情</h4>
					</div>

					<div class="modal-body">

						<table width="100%">
							<tr>

								<th>采购名称： <input type="text" id="c"
									class=" sortNumber form-control" style="width: 200px"
									maxlength="10" /></th>

								<th>开始时间： <input type="text" id="s"
									class=" sortNumber form-control" style="width: 200px"
									maxlength="10" /></th>


							</tr>

							<tr>


								<th>结束时间： <input type="text" id="e"
									class=" sortNumber form-control" style="width: 200px"
									maxlength="10" /></th>

								<th>详情描述： <input type="text" id="d"
									class=" sortNumber form-control" style="width: 200px"
									maxlength="10" /></th>
							</tr>

							<tr>

								<th colspan="2">细节描述： <input type="textarea" id="t"
									class=" sortNumber form-control" style="width: 200px"
									maxlength="10" /></th>

							</tr>

						</table>

					</div>



					<div class="modal-header">
						<h4 class="modal-title" id="myModalLabel">酒产品详情</h4>
						<div class="modal-body">

							<table class="table table-bordered table-header" id="wineMessage">

								<tr>
								<thead>

									<th>酒ID</th>

									<th>酒名称</th>

								</thead>

								</tr>

								<tbody id="wineMessages">



								</tbody>

							</table>

						</div>

					</div>

					<div class="modal-footer">

						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>

						<!-- <button type="button" class="btn btn-primary" id="btnsubmit"

								onclick="syuserupdatetj()">提交</button> -->

					</div>



				</div>

			</div>

		</div>







		<!--新增页面开始-->
		<div class="modal fade" id="myModal-add-info" tabindex="-1"
			role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel">新 增</h4>
					</div>
					<form class="form-horizontal" role="form" action="" method="post"
						id="category_add">
						<div class="modal-body">
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">采购名称：
								</label>

								<div class="col-sm-9">
									<input type="text" class="form-control" id="1" name="rolename"
										style="width: 250px" maxlength="15" placeholder="10个汉字以内" />

								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">结束时间：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="roledetail" id="2" style="width: 250px" maxlength="3" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">开始时间：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="roledetail" id="3" style="width: 250px" maxlength="3" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">采购详情：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="roledetail" id="4" style="width: 250px" maxlength="3" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">state：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="roledetail" id="5" style="wdth: 250px" maxlength="3" />
								</div>
							</div>

						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default"
								data-dismiss="modal">关闭</button>
							<button type="button" class="btn btn-primary" id="btnsubmit"
								onclick="added()">提交</button>
						</div>
					</form>
				</div>
				<!-- /.modal-content -->
			</div>
		</div>


		<!--修改页面开始-->
		<div class="modal fade" id="myModal-update-info" tabindex="-1"
			role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel">修改</h4>
					</div>
					<form class="form-horizontal" role="form" action="" method="post"
						id="category_add">
						<div class="modal-body">
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">采购名称：
								</label>

								<div class="col-sm-9">
									<input type="hidden" id="Purchaseupdateid" name="Purchase" /> <input
										type="text" class="form-control" id="Purchaseupdate"
										name="rolename" style="width: 250px" maxlength="15"
										placeholder="10个汉字以内" />

								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">结束时间：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="roledetail" id="Purchaseupdateend" style="width: 250px"
										maxlength="3" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">开始时间：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="roledetail" id="Purchaseupdatestart"
										style="width: 250px" maxlength="3" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">采购详情：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="roledetail" id="Purchaseupdatedetail"
										style="width: 250px" maxlength="3" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">state：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="roledetail" id="Purchaseupdatestate"
										style="width: 250px" maxlength="3" />
								</div>
							</div>

						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default"
								data-dismiss="modal">关闭</button>
							<button type="button" class="btn btn-primary" id="btnsubmit"
								onclick="updated()">提交</button>
						</div>
					</form>
				</div>
				<!-- /.modal-content -->
			</div>
		</div>


		<!--单个删除确认对话框-->
		<div class="modal fade" id="deleteOneModal" tabindex="-1"
			role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<!-- data-backdrop="static" 禁止点击弹框后面内容 -->
			<form class="form-horizontal" role="form">
				<div class="modal-dialog modal-sm ">
					<!-- modal-sm 小的  modal-lg 大的 -->
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-hidden="true">&times;</button>
							<h4 class="modal-title" id="myModalLabel">提示信息</h4>
						</div>

						<div class="modal-body" style="text-align: left;">
							<h5>您确定要删除当前信息吗？</h5>
						</div>
						<div class="modal-footer">

							<button type="button" class="btn btn-default"
								data-dismiss="modal">取消</button>

							<button type="button" class="btn btn-primary" onclick="deleted()">确认</button>
						</div>
					</div>
					<!-- /.modal-content -->
				</div>
			</form>
			<input type="hidden" id="onedeleteid" />
		</div>


		<!--多个删除确认对话框-->
		<div class="modal fade" id="deleteAllModal" tabindex="-1"
			role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<form class="form-horizontal" role="form">
				<div class="modal-dialog">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-hidden="true">&times;</button>
							<h4 class="modal-title" id="myModalLabel">提示信息</h4>
						</div>
						<div class="modal-body" style="text-align: left;">
							<h5>您确定要删除选中信息吗？</h5>
						</div>
						<div class="modal-footer">

							<button type="button" class="btn btn-default"
								data-dismiss="modal">取消</button>

							<button type="button" class="btn btn-primary"
								onclick="deletealled()">确认</button>
						</div>
					</div>
					<!-- /.modal-content -->
				</div>
			</form>
		</div>
</body>
</html>
